package com.ws.ssmzongjie3.mapper;

import com.ws.ssmzongjie3.bean.Acl_Role_Permission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface Acl_Role_PermissionMapper {
    @Delete("DELETE FROM acl_role_permission WHERE role_id = #{role_id}")
    int deleteAcl_Role_PermissionById(Acl_Role_Permission acl_Role_Permission);
    @Insert("INSERT INTO acl_role_permission(role_id,perm_id) VALUES(#{role_id},#{perm_id})")
    int insertAcl_Role_Permission(Acl_Role_Permission acl_Role_Permission);
    @Select("SELECT * FROM acl_role_permission WHERE role_perm_id = #{role_perm_id}")
    Acl_Role_Permission getAcl_Role_PermissionById(Acl_Role_Permission acl_Role_Permission);
    int updateAcl_Role_Permission(Acl_Role_Permission acl_Role_Permission);
    Acl_Role_Permission listAcl_Role_Permission(Acl_Role_Permission acl_Role_Permission);

}
